home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / DTSCPlusLibrary / Sources / MemoryClass.r < prev    next >
Encoding:
Text File  |  1993-01-14  |  1.4 KB  |  40 lines  |  [TEXT/MPS ]

  1. /* _________________________________________________________________________________________________________ //
  2.   Copyright © 1993 Apple Computer, Inc. All rights reserved.
  3.   Macintosh Developer Technical Support.C++ Macintosh Toolbox Framework.
  4.   Programmer: Kent Sandvik
  5.   Date: 1/2/93
  6.   Revision comments are at the end of this file.
  7.   ---
  8.   TMemory is a simple object checks heap and stack values, as well as changes them.
  9.   TMemoryClass.r contains the resource definitions and resources used byt TMemory and TMemory testing. 
  10.   Add these resources to the test framework using something similar as:
  11.   Rez -rd -o TargetApplication MemoryClass.r -append
  12.   _________________________________________________________________________________________________________ */
  13.  
  14. // INCLUDES
  15. #include "SysTypes.r"
  16. #include "Types.r"
  17. #include "ApplicationResources.h"
  18.  
  19.  
  20. #define kBaseID 1
  21.  
  22. // This is our 'stak' resource definition.
  23. type 'stak' {
  24.         longint;                        // stack size
  25. };
  26.  
  27. resource 'stak' (kBaseID, purgeable) {
  28.     16 * 1024        // Base stack size. TMemory sums this entry for all 'stak' resources to
  29.                     // determine what it should set the stack limit to at application
  30.                     // startup.
  31. };
  32.  
  33. // _________________________________________________________________________________________________________ //
  34.  
  35. /*    Change History (most recent last):
  36.   No        Init.    Date        Comment
  37.   1            khs        1/2/93        New file
  38.   2            khs        1/3/93        Cleanup
  39. */
  40.